Código fuente de 'Paleta de colores.asp'

<html>
<title>Paleta de colores - Códigos asp, programacion asp, descargas asp, rutinas asp</title>
<body bgcolor="#FFFFFF">
</head>
<p align="center"><b><font size="3">Paleta de colores</font></b></p>

<table border=1 width=500 align=center>

<%

' Set up the varible color with all the values to loop through
dim color(6)
color(1)="00"
color(2)="33"
color(3)="66"
color(4)="99"
color(5)="CC"
color(6)="FF"

' Nest the counters
for r_counter = 1 to 6 %>
<tr><%
for g_counter = 1 to 6
for b_counter = 1 to 6
%>
<td align="center" bgcolor="<% 
' Write out the value for each array for the current count to change the bgcolor 
response.write color(r_counter) & color(g_counter) & color(b_counter) %>">
<font color='#FFFFFF'><b>
<% 
' Write out the value for each array for the current count to display the color code 
response.write color(r_counter) & color(g_counter) & color(b_counter) %>
</b></font>
</td>
<% 
next ' loop to change b_counter 
%>
</tr>

<% 
next ' loop to change g_counter
next ' loop to change r_counter
%>

</body>
</html>